package jrain.fw.core.dao;

import java.util.Map;

import jrain.fw.core.dao.bean.SqlInfo;

 
/**
 * <pre>
 * 作者：489088214@qq.com 
 * 描述： SQL解析器
 * </pre>
 */
public interface SqlParser {

	public SqlInfo generateInsert(String namespace, String statement, Map<String, Object> paramData);

	public SqlInfo generateInsert(Map<String,Object> sqlInfo, Map<String, Object> paramData);

	public SqlInfo generateUpdate(String namespace, String statement, Map<String, Object> paramData);

	public SqlInfo generateUpdate(Map<String,Object> sqlInfo, Map<String, Object> paramData);

	public SqlInfo generateDelete(String namespace, String statement, Map<String, Object> paramData);
	
	public SqlInfo generateDelete(Map<String,Object> sqlInfo, Map<String, Object> paramData);

	public SqlInfo generateQuery(String namespace, String statement, Map<String, Object> paramData);
	
	public SqlInfo generateQuery(Map<String,Object> sqlInfo, Map<String, Object> paramData);

	public String generateCountSql(String sql);

	public String generatePageSql(String sql, long startRow, int pageSize);

}
